package com.yfqy.app.constant;

import java.util.ArrayList;
import java.util.List;

public class GeneralConstants {

    public static final int IT0 = 0;
    public static final int IT1 = 1;

    /**
     *
     */
    public static final byte BT0 = 0;
    public static final byte BT1 = 1;
    public static final byte BT2 = 2;
    public static final byte BT3 = 3;

    public static final String EMAIL_REGEX = "^[a-zA-Z0-9_!#$%&'*+/=?`{|}~^.-]+@[a-zA-Z0-9.-]+$";

    public static final Long L0 = 0L;
    public static final Long L1 = 1L;
    public static final Long L10 = 10L;
    public static final Long L12 = 12L;
    public static final Long _L1 = -1L;

    public static final Long DEFAULT_USER_ID = -1L;
    public static final Long ADMIN_USER_ID = 1L;

    public static final String CHARSET_UTF8 = "application/json;charset=UTF-8";

    /**
     * 客户端接口url正则
     */
    public static final String CUSTOMER_URL_PATTEN = "^/api/client(/[^/]+)*/?";
    public static final String PUBLIC_URL_PATTEN = "^/api/noauth(/[^/]+)*/?";

    /**
     * 管理后台接口url正则
     */
    public static final String INTERNAL_URL_PATTEN = "^/api/internal(/[^/]+)*/?";

    public static final List<String> DISPLAY_MENU_ROUT = new ArrayList<>() {{
        add("/order-detail");
        add("/product-detail");
    }};


    // 最多的轮播区显示数量
    public static final Integer MAX_BANNERS_SIZE = 6;
    public static final Integer MIN_BANNERS_SIZE = 1;

    public static final int MAX_RETRY = 3;

    public static final String CRON_FORMAT = "%d 0/1 * * * ?";


}
